package com.xh.sys.service.impl;


import com.mybatisflex.core.query.QueryWrapper;
import com.mybatisflex.spring.service.impl.ServiceImpl;
import com.xh.sys.entity.SysCommentBackItm;
import com.xh.sys.mapper.SysCommentBackItmMapper;
import com.xh.sys.service.SysCommentBackItmService;
import org.springframework.stereotype.Service;

import java.util.List;

import static com.xh.sys.entity.table.SysCommentBackItmTableDef.SYS_COMMENT_BACK_ITM;

/**
 * <p>
 * 浏览评论回复功能_详细内容 服务实现类
 * </p>
 *
 * @author lhl
 * @since 2023-10-19
 */
@Service
public class SysCommentBackItmServiceImp extends ServiceImpl<SysCommentBackItmMapper, SysCommentBackItm> implements SysCommentBackItmService {

	@Override
	public List<SysCommentBackItm> queryByCommentBackId(Integer commentBackId) {

		QueryWrapper queryWrapper = QueryWrapper.create()
				.select(SYS_COMMENT_BACK_ITM.DEFAULT_COLUMNS)
				.from(SYS_COMMENT_BACK_ITM)
				.and(SYS_COMMENT_BACK_ITM.COMMENT_BACK_ID.eq(commentBackId))
				//.orderBy(SYS_COMMENT_BACK_ITM.ID.asc());
				;
		return this.list(queryWrapper);
	}

}
